home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3rimage.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_RIMAGE_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_RIMAGE = 559;
-
-
-
-
- // Description: Class method. Frees images which have not been used during the last R3RIMGCA_CleanupCount * cleanup
- // method calls.
- // p3: Boolean, force full cleanup. If true all unused images are freed regardless of cleanup counting.
-
- R3RIMGCM_CLEANUPCACHE = 559001;
-
- function mR3RIMGCM_CLEANUPCACHE(p3) {
- DoA(this.r3obj, 559001, p3, R3TID_BOOLEAN, 0);
- }
-
- // Description: Class method. Opens the given file image and converts it * to specified format and
- // resolution.
- // Returns: Boolean, true if succeeded
- // p1: String, source file
- // p2: String, target file
- // p3: Tag[], R3RIMGA_Width, R3RIMGA_Height, R3RIMGA_ImageClid
-
- R3RIMGCM_CONVERTFILEIMAGE = 559006;
-
- function mR3RIMGCM_CONVERTFILEIMAGE(p1, p2, p3) {
- return Do3(this.r3obj, 559006, p1, R3TID_STRING, 0, p2, R3TID_STRING, 0, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Class method. Installs image cache refresh hook. The hook object is called if a
- // searched image * file is not found or if it is not up to date. Hook
- // call goes as: * * image_found = R3SendMsg3(hook_obj, hook_mth, filename, filestatus, taglist); * * Callback method should
- // return TRUE if search was successful and image loading should be tried again. * If it
- // returns FALSE, the next installed hook is called. * Hook parameter p2 is R3FILESTATUS *, an
- // optional file specs. Taglist is currently unused.
- // Returns: Boolean, true if hook installation succeeded
- // p1: Object, callback object
- // p3: Integer, callback method
-
- R3RIMGCM_INSTALLREFRESHHOOK = 559007;
-
- function mR3RIMGCM_INSTALLREFRESHHOOK(p1, p3) {
- return DoA2(this.r3obj, 559007, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Class method. Removes a hook set by R3RIMGCM_INSTALLREFRESHHOOK.
- // p1: Object, callback object
- // p3: Integer, callback method
-
- R3RIMGCM_REMOVEREFRESHHOOK = 559008;
-
- function mR3RIMGCM_REMOVEREFRESHHOOK(p1, p3) {
- DoA2(this.r3obj, 559008, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Class method. Tries opening an image file with the given name. If succeeds, * the
- // actual full path is copied to parameter string p1. Possible refresh hooks are called *
- // if the image is not found.
- // Returns: Boolean, true if image found
- // p1: String, pointer to a string buffer (LEN_DOSNAME chars) to which the full file path is
- // copied
-
- R3RIMGCM_GETACTUALNAME = 559009;
-
- function mR3RIMGCM_GETACTUALNAME(p1) {
- return DoA2(this.r3obj, 559009, p1, R3TID_STRING, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Create binding object for the image, with default bindings.
- // Returns: Object, binding object
-
- R3RIMGM_CREATEBINDINGOBJECT = 559010;
-
- function mR3RIMGM_CREATEBINDINGOBJECT() {
- return R3ToJS( DoA(this.r3obj, 559010, 0, R3TID_INTEGER, 0));
- }
-
-
-
-
- R3RIMGA_FileName = 559500;
- function SetR3RIMGA_FileName(value) {
- R3Set(this.r3obj, R3RIMGA_FileName, value, R3TID_STRING, 0);
- }
-
- function GetR3RIMGA_FileName() {
- return R3Get(this.r3obj, R3RIMGA_FileName, R3TID_STRING, 0);
- }
-
- R3RIMGA_BindingObject = 559501;
- function SetR3RIMGA_BindingObject(value) {
- R3Set(this.r3obj, R3RIMGA_BindingObject, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RIMGA_BindingObject() {
- return R3ToJS(R3Get(this.r3obj, R3RIMGA_BindingObject, R3TID_OBJECT, 0));
- }
-
- R3RIMGA_RamImage = 559502;
- function GetR3RIMGA_RamImage() {
- return R3ToJS(R3Get(this.r3obj, R3RIMGA_RamImage, R3TID_OBJECT, 0));
- }
-
- R3RIMGA_Width = 559503;
- function GetR3RIMGA_Width() {
- return R3Get(this.r3obj, R3RIMGA_Width, R3TID_INTEGER, 0);
- }
-
- R3RIMGA_Height = 559504;
- function GetR3RIMGA_Height() {
- return R3Get(this.r3obj, R3RIMGA_Height, R3TID_INTEGER, 0);
- }
-
- R3RIMGA_Frame = 559505;
- function SetR3RIMGA_Frame(value) {
- R3Set(this.r3obj, R3RIMGA_Frame, value, R3TID_INTEGER, 0);
- }
-
- R3RIMGA_TotalFrames = 559506;
- function GetR3RIMGA_TotalFrames() {
- return R3Get(this.r3obj, R3RIMGA_TotalFrames, R3TID_INTEGER, 0);
- }
-
- R3RIMGA_ImageChanged = 559507;
- function SetR3RIMGA_ImageChanged(value) {
- R3Set(this.r3obj, R3RIMGA_ImageChanged, value, R3TID_BOOLEAN, 0);
- }
-
- var R3RIMGA_OpenSilently = 559508; // Boolean
- R3RIMGA_TrueClass = 559509;
- function GetR3RIMGA_TrueClass() {
- return R3Get(this.r3obj, R3RIMGA_TrueClass, R3TID_INTEGER, 0);
- }
-
- var R3RIMGA_OutputClid = 559510; // Integer
- var R3RIMGA_OutputImage = 559511; // Object
-
-
- function r3Rimage () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_RIMAGE, arguments);
- }
- // Methods
- this.CLEANUPCACHE=mR3RIMGCM_CLEANUPCACHE;
- this.CONVERTFILEIMAGE=mR3RIMGCM_CONVERTFILEIMAGE;
- this.INSTALLREFRESHHOOK=mR3RIMGCM_INSTALLREFRESHHOOK;
- this.REMOVEREFRESHHOOK=mR3RIMGCM_REMOVEREFRESHHOOK;
- this.GETACTUALNAME=mR3RIMGCM_GETACTUALNAME;
- this.CREATEBINDINGOBJECT=mR3RIMGM_CREATEBINDINGOBJECT;
-
- // Attributes
- this.GetFileName=GetR3RIMGA_FileName;
- this.SetFileName=SetR3RIMGA_FileName;
- this.GetBindingObject=GetR3RIMGA_BindingObject;
- this.SetBindingObject=SetR3RIMGA_BindingObject;
- this.GetRamImage=GetR3RIMGA_RamImage;
- this.GetWidth=GetR3RIMGA_Width;
- this.GetHeight=GetR3RIMGA_Height;
- this.SetFrame=SetR3RIMGA_Frame;
- this.GetTotalFrames=GetR3RIMGA_TotalFrames;
- this.SetImageChanged=SetR3RIMGA_ImageChanged;
- this.GetTrueClass=GetR3RIMGA_TrueClass;
- }
-
- r3Rimage.prototype=new r3Root;
- // r3rimage.h_H